package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int selectAllCount(String userId);

    List<Map<String, Object>> orderPageList(String userId, int skipCount, int pageSize);

}